package megrez.mail.sender.component;

import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;

import de.neuland.pug4j.template.TemplateLoader;

/**
 * Pug4j字符串模板加载
 *  
 * @author Lucky Yang
 * @since 2.6.9
 */
public class Pug4jStringTemplateLoader implements TemplateLoader  {

    @Override
    public long getLastModified(String name) throws IOException {
        return 0;
    }

    @Override
    public Reader getReader(String value) throws IOException {
        return new StringReader(value);
    }

    @Override
    public String getExtension() {
        return null;
    }

    @Override
    public String getBase() {
        return null;
    }
    
}
